/* 初始化样式
------------------------------- */
@import 'mixins/index.scss';
* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
	outline: none !important;
}
/* 修改主题色 */
:root {
	--el-color-primary: #0059b3;
	--el-color-primary-light-3: #1F8EFF;
	--el-color-primary-light-5: #a0cfff;
	--el-color-primary-light-7: #c6e2ff;
	--el-color-primary-light-8: #d9ecff;
	--el-color-primary-light-9: #ecf5ff;
	--el-color-primary-dark-2: #004182;
	--el-text-color-primary: #333333;
	--el-text-color-regular: #666666;
	--el-text-color-placeholder: #cccccc;
	--el-border-color: #d9d9d9;
	--el-border-radius-base: 2px;	
	--el-border-radius-round: 18px;
	--el-menu-active-color: #0059b3;
	--el-menu-item-height: 48px;
	--el-menu-sub-item-height: calc(var(--el-menu-item-height) - 8px);	
	--el-menu-level-padding: 15px;
	--el-tabs-header-height: 70px;
	--el-disabled-bg-color:#e9e9e9;
	--el-disabled-border-color:#cecece;
	--el-disabled-text-color:var(--el-text-color-regular);
	.el-tabs {
		--el-tabs-header-height: 70px;
	}
	.el-button {
		// --el-button-border-color: #d9d9d9;
		--el-button-hover-bg-color: var(--el-color-white);
		--el-button-hover-border-color: var(--el-color-primary-light-3);
		--el-button-hover-text-color: var(--el-color-primary-light-3);
		--el-button-active-text-color: var(--el-color-primary-dark-2);
	}
	.el-button--primary{
		--el-button-border-color: var(--el-color-primary);
		--el-button-hover-bg-color: var(--el-color-primary-light-3);
		--el-button-hover-border-color: var(--el-color-primary-light-3);
		--el-button-hover-text-color: var(--el-color-white);;
		--el-button-active-text-color: var(--el-color-white);
	}
}
:root {
	--next-color-white: var(--el-color-white);
	--next-bg-main-color: #f0f2f5;
	--next-bg-color: #f5f5ff;
	--next-bg-menuBarActiveColor: rgb(0, 89, 179) !important;
	--next-border-color-light: #f1f2f3;
	--next-color-primary-lighter: #ecf5ff;
	--next-color-success-lighter: #f0f9eb;
	--next-color-warning-lighter: #fdf6ec;
	--next-color-danger-lighter: #fef0f0;
	--next-color-dark-hover: #0000001a;
	--next-color-menu-hover: rgba(0, 0, 0, 0.2);
	--next-color-user-hover: rgba(0, 0, 0, 0.04);
	--next-color-seting-main: #e9eef3;
	--next-color-seting-aside: #d3dce6;
	--next-color-seting-header: #b3c0d1;
	--next-bg-topBarColor: var(--el-text-color-primary);
	--next-bg-menuBar: var(--el-color-white) !important;
	--next-color-user-hover: rgba(0,89,179)
}

html,
body,
#app {
	margin: 0;
	padding: 0;
	width: 100%;
	height: 100%;
	font-family: Helvetica Neue, Helvetica, PingFang SC, Hiragino Sans GB, Microsoft YaHei, SimSun, sans-serif;
	font-weight: 400;
	-webkit-font-smoothing: antialiased;
	-webkit-tap-highlight-color: transparent;
	background-color: var(--next-bg-main-color);
	font-size: 14px;
	overflow: hidden;
	position: relative;
}

/* 主布局样式
------------------------------- */
.layout-container {
	width: 100%;
	height: 100%;
	.layout-pd {
		padding: 15px !important;
	}
	.layout-flex {
		display: flex;
		flex-direction: column;
		flex: 1;
	}
	.layout-aside {
		background: white;
		box-shadow: 2px 0 6px rgb(0 21 41 / 1%);
		height: inherit;
		position: relative;
		z-index: 1;
		display: flex;
		flex-direction: column;
		overflow-x: hidden !important;
		.el-scrollbar__view {
			overflow: hidden;
		}
	}
	.layout-header {
		padding: 0 !important;
		height: auto !important;
	}
	.layout-main {
		padding: 0 !important;
		overflow: hidden;
		width: 100%;
		background-color: var(--next-bg-main-color);
		display: flex;
		flex-direction: column;
		// 内层 el-scrollbar样式，用于界面高度自适应（main.vue）
		.layout-main-scroll {
			@extend .layout-flex;
			.layout-parent {
				@extend .layout-flex;
				position: relative;
			}
		}
	}
	// 用于界面高度自适应
	.layout-padding {
		@extend .layout-pd;
		position: absolute;
		left: 0;
		top: 0;
		height: 100%;
		overflow: hidden;
		@extend .layout-flex;
		&-auto {
			height: inherit;
			@extend .layout-flex;
		}
		&-view {
			background: var(--el-color-white);
			width: 100%;
			height: 100%;
			border-radius: 4px;
			border: 1px solid var(--el-border-color-light, #ebeef5);
			overflow: hidden;
		}
	}
	// 用于界面高度自适应，主视图区 main 的内边距，用于 iframe
	.layout-padding-unset {
		padding: 0 !important;
		&-view {
			border-radius: 0 !important;
			border: none !important;
		}
	}
	// 用于设置 iframe loading 时的高度（loading 垂直居中显示）
	.layout-iframe {
		.el-loading-parent--relative {
			height: 100%;
		}
	}
	.el-scrollbar {
		width: 100%;
	}
	.layout-el-aside-br-color {
		border-right: 1px solid var(--el-border-color-light, #ebeef5);
	}
	// pc端左侧导航样式
	.layout-aside-pc-220 {
		width: 210px !important;
		transition: width 0.3s ease;
	}
	.layout-aside-pc-64 {
		width: 64px !important;
		transition: width 0.3s ease;
	}
	.layout-aside-pc-1 {
		width: 1px !important;
		transition: width 0.3s ease;
		position: relative;
		left: -1px;
	}
	// 手机端左侧导航样式
	.layout-aside-mobile {
		position: fixed;
		top: 0;
		left: -210px;
		width: 210px;
		z-index: 9999999;
	}
	.layout-aside-mobile-close {
		left: -210px;
		transition: all 0.3s cubic-bezier(0.39, 0.58, 0.57, 1);
	}
	.layout-aside-mobile-open {
		left: 0;
		transition: all 0.3s cubic-bezier(0.22, 0.61, 0.36, 1);
	}
	.layout-aside-mobile-mode {
		position: fixed;
		top: 0;
		right: 0;
		bottom: 0;
		left: 0;
		height: 100%;
		background-color: rgba(0, 0, 0, 0.5);
		z-index: 9999998;
		animation: error-img 0.3s;
	}
	.layout-mian-height-50 {
		height: calc(100vh - 50px);
	}
	.layout-columns-warp {
		flex: 1;
		display: flex;
		overflow: hidden;
	}
	.layout-hide {
		display: none;
	}
}

/* element plus 全局样式
------------------------------- */
.layout-breadcrumb-seting {
	.el-divider {
		background-color: rgb(230, 230, 230);
	}
}

/* nprogress 进度条跟随主题颜色
------------------------------- */
#nprogress {
	.bar {
		background: var(--el-color-primary) !important;
		z-index: 9999999 !important;
	}
}

/* flex 弹性布局
------------------------------- */
.flex {
	display: flex;
}
.flex-auto {
	flex: 1;
	overflow: hidden;
}

.flex-end{
	@extend .flex;
	justify-content: end;
}
.flex-between {
	@extend .flex;
	align-items: center;
	justify-content: space-between;
}
.flex-around {
	@extend .flex;
	justify-content: space-around;
}
.flex-center {
	@extend .flex;
	align-items: center;
}

.flex-jcenter {
	@extend .flex;
	justify-content: center;
}

.flex-wrap {
	flex-wrap: wrap;
}

.flex-column {
	@extend .flex;
	flex-direction: column;
}

.flex-margin {
	margin: auto;
}

.flex-warp {
	display: flex;
	flex-wrap: wrap;
	align-content: flex-start;
	margin: 0 -5px;
	.flex-warp-item {
		padding: 5px;
		.flex-warp-item-box {
			width: 100%;
			height: 100%;
		}
	}
}

.flex-grow{
	flex-grow: 1;
}
.flex-shrink{
	flex-shrink: 0;
}

.flex-vstart{
	@extend .flex;
	align-items: start;
}

/* cursor 鼠标形状
------------------------------- */
// 默认
.cursor-default {
	cursor: default !important;
}
// 帮助
.cursor-help {
	cursor: help !important;
}
// 手指
.cursor-pointer {
	cursor: pointer !important;
}
// 移动
.cursor-move {
	cursor: move !important;
}

/* 宽高 100%
------------------------------- */
.w100 {
	width: 100% !important;
}
.h100 {
	height: 100% !important;
}
.vh100 {
	height: 100vh !important;
}
.max100vh {
	max-height: 100vh !important;
}
.min100vh {
	min-height: 100vh !important;
}

/* 颜色值
------------------------------- */
.color-primary {
	color: var(--el-color-primary);
}
.color-success {
	color: var(--el-color-success);
}
.color-warning {
	color: var(--el-color-warning);
}
.color-danger {
	color: var(--el-color-danger);
}
.color-info {
	color: var(--el-color-info);
}

/* 字体大小全局样式
------------------------------- */
@for $i from 10 through 40 {
	.font#{$i} {
		font-size: #{$i}px !important;
	}
}

/* 外边距、内边距全局样式
------------------------------- */
@for $i from -40 through 40 {
	.m#{$i} {
			padding: #{$i}px !important;
		}
	.mt#{$i} {
		margin-top: #{$i}px !important;
	}
	.mr#{$i} {
		margin-right: #{$i}px !important;
	}
	.mb#{$i} {
		margin-bottom: #{$i}px !important;
	}
	.ml#{$i} {
		margin-left: #{$i}px !important;
	}
	.p#{$i} {
		padding: #{$i}px !important;
	}
	.pt#{$i} {
		padding-top: #{$i}px !important;
	}
	.pr#{$i} {
		padding-right: #{$i}px !important;
	}
	.pb#{$i} {
		padding-bottom: #{$i}px !important;
	}
	.pl#{$i} {
		padding-left: #{$i}px !important;
	}
	.top#{$i}{
		top: #{$i}px !important;
	}
	.bottom#{$i}{
		bottom: #{$i}px !important;
	}
	.left#{$i}{
		left: #{$i}px !important;
	}
	.right#{$i}{
		right: #{$i}px !important;
	}
}
@for $i from 1 through 10 {
	.ellipsis#{$i} {
		@include text-ellipsis($i);
	}
}
.w-full {
	width: 100%;
}
.h-full {
	height: 100%;
}

/* 背景色
------------------------------- */
.bg-primary {
	background-color: var(--el-color-primary);
}
.bg-success {
	background-color: var(--el-color-success);
}
.bg-warning {
	background-color: var(--el-color-warning);
}
.bg-danger {
	background-color: var(--el-color-danger);
}
.text-primary{
	color: var(--el-text-color-primary);
}
.text-regular{
	color: var(--el-text-color-regular);
}
.text-placeholder{
	color: var(--el-text-color-placeholder);
}
.text-center{
	text-align: center;
}
.text-left{
	text-align: left;
}
.text-right{
	text-align: right
}
.relative{
	position: relative;
}
.absolute{
	position: absolute;
}
.fixed{
	position: fixed;
}
.mini-gray-select{
	.el-select__wrapper{
		border-bottom-right-radius: 0;
		border-top-right-radius: 0;
		box-shadow: 1px 0 0 0 var(--el-border-color) inset, 0 1px 0 0 var(--el-border-color) inset, 0 -1px 0 0 var(--el-border-color) inset;
		background-color: var(--el-fill-color-light);

	}
}
.table-is-required{
	font-weight: 700;
	position: relative;
	&::before{
		content: '*';
		position: absolute;
		left: -10px;
		color: var(--el-color-danger);
	}
}
.font-bold{
		font-weight: bold;
}
.pointer{
	cursor: pointer;
}
.grow-red {
	color: red;
}

.grow—green {
	color: green;
}